package cn.gson.springboot.model.mapper.cusmapper;

import cn.gson.springboot.model.pjos.Culinkman;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface CulinkmanMapper {
//    分页查询联系人
    public List<Culinkman> manSelect(@Param("cupState")Integer cupState,@Param("cupPhone")String cupPhone, @Param("cupName") String cupName);

//    修改首要联系人
    public void updateMaster(@Param("cupMaster")Integer cupMaster,@Param("customId") Integer customId);

//    逻辑删除联系人
    public void delCulinkman(@Param("cupState")Integer cupState,@Param("cupId") Integer cupId);

//    查询联系电话是否重复
    public List<Culinkman> selectCupPhone(String cupPhone);

}
